﻿using System;
using System.Collections.Generic;
using System.Text;
/// <summary>
/// Represents alls information about Categories in Forum
/// </summary>
public class Category
{
    #region Variable Private
    private int _categoryID;
    private int _parentID;
    private string _title;
    private string _description;
    private int _order;
    private bool _status;
    private string _strStatus;
    #endregion

    #region Properties Public
    public int CategoryID
    {
        get { return _categoryID; }
        set { _categoryID = value; }
    }
    public int ParentID
    {
        get { return _parentID; }
        set { _parentID = value; }
    }
    public string Title
    {
        get { return _title; }
        set { _title = value; }
    }
    public string Description
    {
        get { return _description; }
        set { _description = value; }
    }
    public int Order
    {
        get { return _order; }
        set { _order = value; }
    }
    public bool Status
    {
        get { return _status; }
        set { _status = value; }
    }

    public string StrStatus2
    {
        get
        {
            if (_status)
                return "Active ";
            return "Unactiver";
        }
        set
        {
            if (_status)
                _strStatus = "Active ";
            _strStatus = "Unactiver";
        }
    }



    public string StrStatus
    {
        get
        {
            if (_status)
                return "Active ";
            return "Unactiver";
        }
        set { _strStatus = value; }
    }
    #endregion

    #region Constructor
    public Category() { }
    public Category(int parentID, string title, string des, int order, bool status)
    {
        this.ParentID = parentID;
        this.Title = title;
        this.Description = des;
        this.Order = order;
        this.Status = status;
    }
    public Category(int cateID, int parentID, string title, string des, int order, bool status)
    {
        this.CategoryID = cateID;
        this.ParentID = parentID;
        this.Title = title;
        this.Description = des;
        this.Order = order;
        this.Status = status;
    }

    #endregion
}
